package ProjectTeam39.Domains;

public class Doctor extends Nurse {
	String special;
	Gender g;
	public Doctor(String name, String username,String pw, long phoneNum, String address,
			AppointmentCalender ac, UserList ul, String specialty){
		super(name,username,pw,phoneNum,address,ac,ul);
		special = specialty;
		this.isDoctor = true;
	}
	
	private boolean makeOrders(Appointment A, TreatmentRecord tr, String labWork,
								String followUp, String rx, String instructions){
		try{
		DoctorsOrders newDO = new DoctorsOrders(A ,labWork,followUp,rx,instructions);
		tr.setDoctorsOrders(newDO);
		}
		catch(Exception e)
		{
			return false;
		}
		return true;
	}
	public String getSpecialty(){
		return special;
	}
	
	public void goToMedSchool(String newSpecialty){
		special = newSpecialty;
	}
}
